home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 24
/
Aminet 24 (1998)(GTI - Schatztruhe)[!][Apr 1998].iso
/
Aminet
/
text
/
print
/
wbprint.lha
/
wbprint
/
Install
< prev
next >
Wrap
Text File
|
1998-02-08
|
3KB
|
143 lines
; Installer script for wbprint
;
; Copyright © 1998 Gerhard Jirsa
; All rights reserved!
; Released as Freeware without any explicit or implicit warranty!
;
; email: g.jirsa@xpoint.at
; WWW : http://www.user.xpoint.at/g.jirsa/
;
; $VER: Install 43.8 (08.02.1998)
;
; -------------------------------------------------------------------------------
(procedure check-system-version
(set #exec-version (/ (getversion) 65536))
(if (< #exec-version 37)
(abort "wbprint needs Kickstart 2.04 or higher.\n")
)
)
(procedure select-document-directory
(set #doc-dest
(askdir
(prompt "Select the directory where you want to "
"install the documentation. ")
(help "The documentation can be installed anywhere. ")
(default "Sys:tools")
)
)
)
(procedure select-destination-directory
(if (exists "Sys:WBStartup")
(set #default-dir "Sys:WBStartup")
(set #default-dir "Sys:")
)
(set @default-dest
(askdir
(prompt "Select the directory where you want to "
"install wbprint. A seperate directory WILL NOT "
"be created at the location you specify.")
(help "Select the directory where you want to "
"install wbprint. Installing wbprint in your "
"WBStartup drawer is useful if you print regularily "
"wbstartup is just about 5.3k, so it does not need "
"much ressources.")
(default #default-dir)
)
)
)
(procedure select-icon
(set #icon-choice
(askchoice
(prompt "Please select which icons you "
"want to use:")
(help "wbprefer comes with two different "
"icon styles. Please select the one you prefer. ")
(choices "4 color Workbench" "8 Color Workbench")
(default 0)
)
)
)
(procedure copy-file
(copyfiles
(source #to-copy)
(dest @default-dest)
(optional force)
)
)
(procedure copy-files
(set #to-copy "wbprint")
(copy-file)
(complete 30)
(select #icon-choice
(set #to-copy "Icons/wbprint.4.info")
(set #to-copy "Icons/wbprint.8.info")
)
(copyfiles
(source #to-copy)
(dest @default-dest)
(newname "wbprint.info")
)
)
(procedure ask-docs
(set #docstyle
(askoptions
(prompt "Which docs do you want to install: ")
(help "You can install the .doc file (plain ASCII) "
"and/or the .dvi file (TeX output format, requires "
"ShowDVI or compatible program). ")
(choices ".doc (ASCII)" ".dvi (TeX)")
(default -1)
)
)
)
(procedure copy-docs
(if (IN #docstyle 0)
(copyfiles
(source "doc/wbprint.doc")
(dest #doc-dest)
(infos)
)
)
(if (IN #docstyle 1)
(copyfiles
(source "doc/wbprint.dvi")
(dest #doc-dest)
(infos)
)
)
)
; ------------ Start --------------
(welcome "Welcome to the wbprint 1.0 installation.\n")
(check-system-version)
(complete 0)
(set source-dir "")
(select-destination-directory)
(select-icon)
(copy-files)
(ask-docs)
(if (not(= #docstyle 0))
(
(select-document-directory)
(copy-docs)
)
)
(complete 100)